package cn.zhaoyuening.schoolmates.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.zhaoyuening.schoolmates.dao.PhotoDao;
import cn.zhaoyuening.schoolmates.domain.Photo;
import cn.zhaoyuening.schoolmates.service.PhotoService;

@Service
public class PhotoServiceImpl extends BaseServiceImpl<Photo> implements PhotoService {
	@Autowired
	private PhotoDao photoDao;


	@Override
	public List<Photo> findByPhotosId(Long photosId, Integer startIndex, Integer pageSize,String order) {
		List<Photo> list = photoDao.findAll("pid=?", new Object[]{photosId}, startIndex, pageSize,order);
		return list;
	}
}
